import { Component } from 'react';
import DB from '../../../app/db';


export default class Page extends Component {
  constructor(props) {
    super(props);
    
    //关闭加载页的遮罩效果
    $(".loading-containter").hide();
    //禁用ios弹性事件
    dd.ui.webViewBounce.disable();

  }

  componentWillMount() {
    let id = this.props.params.id;
    var thirdMenuType = getLoginUserInfo().thirdMenuType;
    if(id){
      let ipPort = getLoginUserInfo().contextPageUrl;
      let param = {id: id};
      DB.SomeModuleAPI.murl(param).then((content) => {
        pageSkipDirectly(ipPort + content.url);
        if(thirdMenuType=="DING"){
          dd.biz.navigation.goBack();
        }else if(thirdMenuType=="WX"){
          history.back();
        }else if(thirdMenuType=="MH"){
          !!emp&&emp.navigateBack();
        }
      })
    }
  }

  render() {
    return (
        <div>
        </div>    
    );
  }

}
